import { createRouter, createWebHistory } from 'vue-router'

const routes = [

    // 系统监控
    {
        path: '/node-status',
        name: 'NodeStatus',
        component: () => import('../views/camera/NodeStatus.vue')
    },
    {
        path: '/live-view',
        name: 'LiveView',
        component: () => import('../views/camera/LiveView.vue')
    },
    {
        path: '/camera-detail',
        name: 'CameraDetail',
        component: () => import('../views/camera/CameraDetail.vue')
    },
    {
        path: '/data-collection',
        name: 'DataCollection',
        component: () => import('../views/camera/DataCollection.vue')
    },
    {
        path: '/student-info',
        name: 'StudentInfo',
        component: () => import('../views/student/StudentInfo.vue')
    },
    {
        path: '/group-emotion',
        name: 'GroupEmotion',
        component: () => import('../views/student/GroupEmotion.vue')
    },
    {
        path: '/student-detail/:id',
        name: 'StudentDetail',
        component: () => import('../views/student/StudentDetail.vue'),
        props: true,
        meta: { hidden: true } // 标记为隐藏界面
    },
    // 人脸界面
    {
        path: '/face-upload',
        name: 'FaceUpload',
        component: () => import('../views/FaceUpload.vue')
    },
    {
        path: '/face-records',
        name: 'FaceRecords',
        component: () => import('../views/FaceRecords.vue')
    },
    // 心理健康管理
    {
        path: '/psychological-test',
        name: 'PsychologicalTest',
        component: () => import('../views/PsychologicalTest.vue')
    },
    {
        path: '/abnormal-manage',
        name: 'AbnormalManage',
        component: () => import('../views/AbnormalManage.vue')
    },
    {
        path: '/questionnaire',
        name: 'Questionnaire',
        component: () => import('../views/AppQuestionnaire.vue')
    },
    // 基础信息
    {
        path: '/basic-info',
        name: 'BasicInfo',
        component: () => import('../views/BasicInfo.vue')
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router